
# import cv2
# from parking_database.query import query_all_parking_space
#
# def picChanger(img):
#     data = query_all_parking_space()
#     print(data)
#     for item in data:
#         if item['车牌']=='' or None:
#             if item['车位']<9:
#                 true_name = '0'+str(item['车位'])
#
#             else:true_name= str(item['车位'])
#             print(true_name)
#             cv2.imwrite("static/carimg/"+true_name + '.jpg', img)
#             break
#
#
# def carouter(plate):
#     img=cv2.imread("26.jpg")
#     data= query_all_parking_space()
#     for item in data:
#         if item['车牌']==plate:
#             if item['车位']<9:
#                 true_name = '0'+str(item['车位'])
#
#             else:true_name= str(item['车位'])
#             cv2.imwrite(true_name+'.jpg',img)
#
#
# img = cv2.imread("C:/Users/10975/Desktop/u=1950981199,1596798485&fm=214&gp=0.jpg")
# picChanger(img)